{% load static %}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-3.4.1/css/bootstrap.min.css' %}">
    <style>
        .account {
            width: 400px;
            border: 1px solid #dddddd;
            border-radius: 5px;
            box-shadow: 5px 5px 20px #aaa;

            margin-left: auto;
            margin-right: auto;
            margin-top: 100px;
            padding: 20px 40px;
        }
        .account h2 {
            margin-top: 10px;
            text-align: center;
        }
    </style>
</head>
<body>
<div class="account">
    <h2>完善用户信息</h2>
    <form method="post" novalidate>
        {% csrf_token %}
        <div class="form-group">
            <label>电话号码</label>
            {{ form.phone_number }}
            <span style="color: #b92c28">{{ form.phone_number.errors.0 }}</span>
        </div>
        <div class="form-group">
            <label>家庭住址</label>
            {{ form.user_address }}
            <span style="color: #b92c28">{{ form.user_address.errors.0 }}</span>
        </div>
        <div class="form-group">
            <label>性别</label>
            {{ form.gender }}
            <span style="color: #b92c28">{{ form.gender.errors.0 }}</span>
        </div>
         <div class="form-group">
            <label>默认收件地址</label>
            {{ form_address.address }}
            <span style="color: #b92c28">{{ form_address.address.errors.0 }}</span>
        </div>
         <div class="form-group">
            <label>收件人</label>
            {{ form_address.receiver }}
            <span style="color: #b92c28">{{ form_address.receiver.errors.0 }}</span>
        </div>
         <div class="form-group">
            <label>联系号码</label>
            {{ form_address.phone }}
            <span style="color: #b92c28">{{ form_address.phone.errors.0 }}</span>
        </div>

        <input type="submit" value="提 交" class="btn btn-primary">

    </form>
</div>
</body>
</html>